package com.common.oss.config;

import com.common.oss.instance.OssInstance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

@Component
public class CloseAfter {

    @Autowired
    private OssInstance ossInstance;

    @PreDestroy
    public void destroy(){
        ossInstance.ossShutdown();
    }
}
